﻿using System;
using System.Web;
using Castle.ActiveRecord;
using Castle.ActiveRecord.Framework;
using Castle.ActiveRecord.Framework.Config;
using System.Text.RegularExpressions;

namespace LIB
{  

    public class MyHttpApplication : HttpApplication
    {
        public MyHttpApplication()
        {
        }
      
        void Application_Start(object sender, EventArgs e)
        {
            // Code that runs on application startup
            Castle.ActiveRecord.Framework.IConfigurationSource source = System.Configuration.ConfigurationManager.GetSection("activerecord-asp-net-2.0") as Castle.ActiveRecord.Framework.IConfigurationSource;
            Castle.ActiveRecord.ActiveRecordStarter.Initialize(source,
                typeof(Category_Info),
                typeof(Content_Info),
                typeof(Users_Info),
                typeof(Application_Info),
                typeof(Page_Info),
                typeof(catDeQuy),
                typeof(Home_Info),
                typeof(Home_Cat_Info),
                typeof(catDeQuyNguoc),
                typeof(HotlineEmail_Info),
                typeof(Image_Info),
                typeof(News_Cat_Info),
                typeof(Newsletter_Info),
                typeof(memberLet_Info),
                typeof(tapchi_Info)
                );
        }
    }
}
